﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuickLMSNav.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %>
<%@ Register TagPrefix="my" TagName="IMSNavLite" Src="~/Course/UserControls/IMS_NavigatorLite.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Quick LMS</title>
</head>
<body style="overflow: hidden;">
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div style="position: absolute; top: 0px; right: 0px; background-color: #cccccc;">
            <a onclick="ToggleNavigator(this)" style="font-size: 8pt; cursor: pointer; cursor: hand; border: 1px solid black;">Collapse Navigator</a>
        </div>
        <br />
        <table width="100%">
            <tr>
                <td id="NavigatorCell">
                    <asp:Silverlight ID="Silverlight1" runat="server" Height="600px" Width="250px">
                    </asp:Silverlight>
                    <my:IMSNavLite ID="WebIMS" runat="server" />
                </td>
                <td valign="top" style="width: 100%;">
                    <iframe id="WebContent" width="100%" style="border-left: 1pt solid black; border-top-width: 0px; border-bottom-width: 0px; border-right-width: 0px; display: none;"></iframe>
                    <div id="NonWebContent" style="width: 100%; border-left: 1pt solid black; border-top-width: 0px; border-bottom-width: 0px; border-right-width: 0px; display: none; padding-left: 10px;"></div>
                </td>
            </tr>
        </table>
    </div>
    <input id="SLAccessVar" type="hidden" value="<%=FolderName %>" />
    <script language="javascript" type="text/javascript">
        document.getElementById("WebContent").style.height = screen.height - 190 + "px";
        document.getElementById("NonWebContent").style.height = screen.height - 190 + "px";
        
        if(<%= WebVersion %>)
        {
            CurrentNode = <%=CurrentNode %>;
            ShiftNode(1);
        }
        
        function ToggleNavigator(obj)
        {
            if(obj.accesskey != "Closed")
            {
                document.getElementById("NavigatorCell").style.display = "none";
                obj.innerHTML = "Expand Navigator";
                obj.accesskey = "Closed";
            }
            else
            {
                document.getElementById("NavigatorCell").style.display = "block";
                obj.innerHTML = "Collapse Navigator";
                obj.accesskey = "Open";
            }
        }
    </script>
    </form>
</body>
</html>
